package com.dl.blog.mapper;

import com.dl.blog.entity.VisitLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * @author DL
 * @create 2025-07-07 下午10:52
 */
@Mapper
public interface VisitLogMapper {
    // 插入访问日志，返回自增主键
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    int insert(VisitLog visitLog);
}
